package com.itany.shop.dao;

import com.itany.shop.entity.User;

/**
 * @Author:石小俊
 * @Date:2022/12/15 11:14
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public interface UserDao {

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    public User selectByUsername(String username);

    /**
     * 添加用户信息
     * @param user
     */
    public void insertUser(User user);

    /**
     * 根据用户名与密码查询用户信息
     * @param username
     * @param password
     * @return
     */
    public User selectByUsernameAndPassword(String username,String password);
}
